package com.woniuxy.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniuxy.controller.form.CondFrom;
import com.woniuxy.controller.form.ProjectIdNamePageForm;
import com.woniuxy.controller.form.ProjectNewFrom;
import com.woniuxy.controller.form.ProjectStateForm;
import com.woniuxy.controller.info.ProjectIdAndNameInfo;
import com.woniuxy.controller.info.ProjectInfo;
import com.woniuxy.model.Project;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 马世亮
 * @since 2022-02-15
 */
public interface ProjectService extends IService<Project> {

    boolean addNewProject(ProjectNewFrom projectNewFrom);

    IPage<ProjectInfo> getprojects(CondFrom condFrom);

    boolean changeproject(ProjectNewFrom projectNewFrom);

    boolean changestate(ProjectStateForm projectStateForm);


    Page<ProjectIdAndNameInfo> getAllProjectByPage(ProjectIdNamePageForm projectIdNamePageForm);

    List<Project> getAllprojectName();
    List<ProjectIdAndNameInfo> getMyProjectName(Integer uid);

    List<ProjectIdAndNameInfo> getHaveMyProjectName(Integer uid);
}
